/* 基础设置 版心 */
.container{
    /* 版心不用加height 因为核心作用是限定宽度，但高度是内容撑开 */
    width: 1190px;
    margin: 0 auto;
    /* background-color: orange; */
}

/* #region 顶部导航条start */
.topbar{
    height: 30px;
    background-color: #ECECEC;
}
.welcome{
    height: 30px;
    line-height: 30px;
    color: #666;
    /* 1.1 */
    font-size: 0px;
}
/* 1.1 */
.welcome span,.welcome a{
    font-size: 12px;
}
.welcome .hello {
    margin-right: 28px;
}
.welcome .login {
    /* 显示顺序 padding，border，margin 
    因此这里不能用margin，否则border显示不出来 */
    padding-right: 10px;
    border-right: 1px solid #666;
}
.welcome .register {
    padding-left: 10px;
}
.topbar-nav .list{
    height: 30px;
    line-height: 30px;
}
.topbar-nav .list li{
    float: left;
}
.topbar-nav .list li a{
    border-right: 1px solid #666;
    /* 上下没有，左右15 */
    padding: 0 15px;
}
.topbar-nav .list li:first-child a{
    padding-left: 0;
}
.topbar-nav .list li:last-child a{
    padding-right: 0px;
    border: 0;
}
/* #endregion 顶部导航条 */

/* #region 头部start */
.header{
    height: 120px;
    /* background-color: skyblue; */
}
.header .search form{
    margin-top: 42px;
    /* 消除行内元素的间距，但是因为input和button有默认字体大小，
    所以继承下来的属性不会生效，不过能清除两个元素之间的间距 */
    font-size: 0;
}
.header .search input{
    width: 510px;
    height: 36px;
    border: 1px solid #DD302D;
}
.header .search button{
    width: 80px;
    height: 36px;
    background-color: #DD302D;
    /* 因为基线对不齐，所以要设置这个，随便设置什么都行，就是不能设置baseline */
    vertical-align: top;
    background-image: url('../images/serch_icon.png');
    /* 因为图片很小，所以会重复，这里设置不重复 */
    background-repeat: no-repeat;
    /* 设置图片的位置在中央，要计算 */
    background-position: 28px 6px;
}
/* #endregion 头部end */

/* #region 主导航start */
.main-nav{
    height: 48px;
    border-bottom: 1px solid #DD302D;
}
.main-nav .all-types{
    width: 190px;
    height: 48px;
    background-color: #DD302D;
    color: white;
    text-align: center;
    line-height: 48px;
    font-size: 16px;
}
.main-nav-list{
    height: 48px;
    line-height: 48px;
}
.main-nav-list li{
    float: left;
    margin: 0 10px;
    font-size: 16px;
}
/* #endregion 主导航end */

/* #region 主要内容区start */
.main-content{
    margin-top: 10px;
}

.main-content .slide-nav{
    width: 190px;
    height: 458px;
    background-color: #F4F4F4;
    position: relative;
}
.main-content .slide-nav li{
    font-size: 14px;
    /* 也可以使用Margin和padding，不过用行高更好 */
    height: 28px;
    line-height: 28px;
    /* 要用padding，因为背景色不填充margin */
    padding-left: 16px;
}
.main-content .slide-nav li:hover{
    background-color: red;
    /* 直接在这里写样式没用，a标签有默认样式，继承过来的没用 */
    /* color: white; */
}
/* 用子代选择器精准选择 */
.main-content .slide-nav li:hover>a{
    color: white;
}
.second-menu{
    width: 680px;
    height: 458px;
    background-color: white;
    position: absolute;
    top: 0;
    /* 注意其实这个二级菜单如果和一级菜单重合是会覆盖到一级菜单上面的 */
    left: 190px;
    padding-left: 20px;
    display: none;
}
.main-content .slide-nav li:hover .second-menu{
    display: block;
}

.second-menu dl{
    height: 36px;
    line-height: 36px;
}
.second-menu dl:first-child{
    margin-top: 10px;
}
.second-menu dt{
    float: left;
    width: 70px;
    /* 微软雅黑不能直接设置字体宽度为数字 */
    font-weight: bold;
    margin-right: 10px;
}
.second-menu dd{
    float: left;
}
.second-menu dd a{
    padding: 0 10px;
    border-left: 1px solid #666;

}

.main-content .banner{
    width: 690px;
    height: 458px;
    background-color: green;
    margin: 0 10px;
}

.main-content .slide-other{
    width: 290px;
    height: 458px;
    /* background-color: orange; */
}


.main-content .slide-other .message{
    width: 260px;
    height: 156px;
    border: 1px solid #D9D9D9;
    /* 设置了padding的话，注意盒子的宽高要减 */
    padding: 0 14px;
}
.main-content .slide-other .message .title{
    height: 38px;
    line-height: 38px;
    border-bottom: 1px solid #D9D9D9;
}
.main-content .slide-other .message .title span{
    font-size: 14px;
}
.main-content .slide-other .message .title a{
    font-size: 12px;
}
.main-content .slide-other .msg-list li{
    height: 26px;
    line-height: 26px;
}


.main-content .slide-other .other-nav{
    margin-top: 10px;
    width: 290px;
    height: 290px;
    /* background-color: gray; */
    /* 解决margin塌陷 */
    overflow: hidden;
}

.other-nav-list:first-child{
    margin-top: 16px;
}
.other-nav-list:nth-child(2){
    margin: 17px 0;
}

.other-nav-list li{
    width: 48px;
    height: 70px;
    /* background-color: skyblue; */
    float: left;
    margin: 0 11px;
    text-align: center;
}
.other-nav-list li:first-child{
    margin-left:16px;
}
.picture{
    /* 使用精灵图 */
    background-image: url(../images/精灵图-侧边功能.png);
    /* 不是使用img标签的话，就要设置宽高，否则不会出来 */
    width: 48px;
    height: 48px;
    background-position: -48px 0;
}
/* 第一行的第一列 */
.other-nav-list:nth-child(1) li:nth-child(1) .picture{
    background-position: 0 0;
}
/* 第一行的第二列 */
.other-nav-list:nth-child(1) li:nth-child(2) .picture{
    background-position: -48px 0;
}
.other-nav-list:nth-child(1) li:nth-child(3) .picture{
    background-position: -96px 0;
}
.other-nav-list:nth-child(1) li:nth-child(4) .picture{
    background-position: -144px 0;
}

/* 第二行的第一列 */
.other-nav-list:nth-child(2) li:nth-child(1) .picture{
    background-position: 0 -48px;
}
/* 第二行的第二列 */
.other-nav-list:nth-child(2) li:nth-child(2) .picture{
    background-position: -48px -48px;
}
.other-nav-list:nth-child(2) li:nth-child(3) .picture{
    background-position: -96px -48px;
}
.other-nav-list:nth-child(2) li:nth-child(4) .picture{
    background-position: -144px -48px;
}

/* 第三行的第一列 */
.other-nav-list:nth-child(3) li:nth-child(1) .picture{
    background-position: 0 -48px;
}
/* 第三行的第二列 */
.other-nav-list:nth-child(3) li:nth-child(2) .picture{
    background-position: -48px -96px;
}
.other-nav-list:nth-child(3) li:nth-child(3) .picture{
    background-position: -96px -96px;
}
.other-nav-list:nth-child(3) li:nth-child(4) .picture{
    background-position: -144px -96px;
}
/* #endregion 主要内容区end */

/* #region 秒杀专场start */
.seckill{
    margin-top: 10px;
}
.seckill img{
    float: left;
    padding-right: 11px;
    cursor: pointer;
}
.seckill img:last-child{
    padding-right: 0px;
}
/* #endregion 秒杀专场end */

/* #region 楼层start */
.floor{
    margin-top: 48px;
}
.floor-name{
    font-size: 20px;
}
.floor-nav{
    height: 30px;
    line-height: 30px;
    padding-bottom: 4px;
    border-bottom: 2px solid #DD302D;
}
.floor-nav-list li{
    float: left;
    font-size: 14px;
}
.floor-nav-list li a{
    padding: 0 10px;
    border-right: 1px solid #666;
}
.floor-nav-list li:first-child a{
    padding-left: 0;
}
.floor-nav-list li:last-child a{
    padding-right: 0;
    border: 0;
}

.floor-info .item{
    float: left;
}
.floor-info .item1{
    width: 190px;
    height: 392px;
    /* background-color: skyblue; */
    padding: 20px;
}
.item1-list{
    margin-bottom: 29px;
}
.item1-list li{
    width: 90px;
    height: 22px;
    padding-bottom: 3.5px;
    border-bottom: 1px solid #D9D9D9;
    font-size: 16px;
    text-align: center;
}
/* 奇数左浮动 */
.item1-list li:nth-child(2n-1){
    float: left;
}
/* 偶数右浮动 */
.item1-list li:nth-child(2n){
    float: right;
}
/* 中间部分与上下间距 */
.item1-list li:nth-child(3),
.item1-list li:nth-child(4)
{
    margin: 14.4px 0;
}
.floor-info .item2{
    width: 340px;
    height: 432px;
    /* background-color: green; */
}
.floor-info .item3{
    width: 206px;
    height: 432px;
    /* background-color: orange; */
    border-right: 1px solid #E2E2E2;
}
.floor-info .item3 img,
.floor-info .item4 img,
.floor-info .item5 img
{
    border-bottom: 1px solid #E2E2E2;
}
.floor-info .item4{
    width: 206px;
    height: 432px;
    /* background-color: gray; */
    border-right: 1px solid #E2E2E2;
}

.floor-info .item5{
    width: 206px;
    height: 432px;
    /* background-color: tomato; */
}
/* #endregion 楼层end */

/* #region页脚区start */
.footer {
    margin-top: 48px;
    height: 440px;
    background-color: #483E3E ;
}
.links-list {
    float: left;
    width: 190px;
    height: 176px;
    margin-top: 48px;
    margin-right: 10px;
}
.links-list:last-child {
    margin-right: 0px;
}
.links-list a {
    color: white;
    font-size: 14px;
}
.line {
    margin-top: 22px;
    height: 1px;
    background-color: #584D4D;
}
.bottom-links {
    text-align: center;
    margin-top: 47px;
}
.bottom-links-list {
    display: inline-block;
}

.bottom-links-list li {
    float: left;
}
.bottom-links-list li a {
    padding: 0 26px;
    border-right: 1px solid white;
    color: white;
}
.bottom-links-list li:first-child a {
    padding-left: 0;
}
.bottom-links-list li:last-child a {
    padding-right: 0;
    border: 0;
}
.copyright {
    margin-top: 10px;
    color: white;
}


/* #endregion页脚区end */